package com.seecen.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seecen.pojo.RecommendRecipes;
import com.seecen.service.RecommendRecipesService;
import com.seecen.mapper.RecommendRecipesMapper;
import com.seecen.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author W
* @description 针对表【t_recommend_recipes(菜谱信息表)】的数据库操作Service实现
* @createDate 2025-07-21 12:57:25
*/
@Service
public class RecommendRecipesServiceImpl extends ServiceImpl<RecommendRecipesMapper, RecommendRecipes>
    implements RecommendRecipesService{

    @Autowired
    private RecommendRecipesMapper recommendRecipesMapper;

    @Override
    public Result getRecommendRecipeAll() {
        List<RecommendRecipes> recommendRecipesList = recommendRecipesMapper.selectList(null);
        return Result.ok(recommendRecipesList);
    }
}




